<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('currentOnline')}">当前在线玩家</a></li>
    </ul>
    <form class="search_form" method="get" action="{:url('currentOnline')}">
        <div class="well form-inline margin-top-20">
            总注册人数：<span class="red">{$info.player_total}</span>
            &nbsp;&nbsp;总登录人数：<span class="red">{$info["login_total"]}</span>
            &nbsp;&nbsp;当前在线人数：<span class="red">{$info.all_online_num}</span>
            &nbsp;&nbsp;当前在线IP：<span class="red">{$info.ip_num_total}</span>
            &nbsp;&nbsp;昨日此时在线人数：<span class="red">{$yesterdayOL}</span>
        </div>
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th align="center">玩家ID</th>
                <th align="center">角色名</th>
                <th align="center">帐号</th>
                <th align="center">等级</th>
                <th align="center">注册时间</th>
                <th align="center">登录时间</th>
                <th align="center">登录IP</th>
                <th align="center">IP所在地</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="onlineInfo" item="vo">
                <tr>
                    <td><a href="{:url('PlayerManage/playerInfo',array('role_id' => $vo['id']))}" target="_self">{$vo.id}</a></td>
                    <td><a href="{:url('PlayerManage/playerInfo',array('role_id' => $vo['id']))}" target="_self">{$vo.name}</a></td>
                    <td>{$vo.account}</td>
                    <td>{$vo.lev}</td>
                    <td>{$vo.reg_time|date="Y-m-d H:i:s"}</td>
                    <td>{$vo.last_login_time|date="Y-m-d H:i:s"}</td>
                    <td>{$vo.last_login_ip}</td>
                    <td>{:getIpFromAddress($vo['last_login_ip'])}</td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__STATIC__/js/admin.js?v=4"></script>
</body>
</html>